<?php
	require_once("../oh.framework/oh.framework.php");
	oh("config")->from_file("config.php");
	
	//oh("pagemanage")->add_rule();

			
	oh("page")
		->load("header.title","oh.doc - a complete documentation for oh.framework")
		->menu("Dashboard=>?page=home, 
				Modules=>?page=modules, 
				Functions=>?page=functions")
		->set("header.right",'<a href="../">developer</a>')
		->show();

	function oh_page_content() {
		if (false) {
		} else if ( oh("page.is.home") ) {
			oh(page)->open("sidebar");
			oh("rss")->show("http://code.google.com/feeds/p/oh-php-framework/updates/basic");			
			oh(page)->stop("sidebar");
			oh("version")->info();

		} else if ( oh("page.is.modules") ) {
			oh(page)->content_title("Modules");
			$ms = oh("kernel")->list_modules();
			foreach($ms as $m) {
				echo '<h4><a href="?page=modules.'.$m.'">oh("'.$m.'")</a></h4>';
			}

		} else if ( oh("page.is.modules.*") ) {
			$m = oh("page.token.1");
			oh(page)->content_title("Module: <strong>".$m."</strong>");
			$ms = oh_methods($m);
			foreach($ms as $i) {
				echo '<h4><a href="?page=modules.'.$m.'.'.$i.'">oh("'.$m.'")->'.$i.'(...)</a></h4>';
			}

		} else if ( oh("page.is.functions") ) {
			oh(page)->content_title("Functions");
			$ms = oh_methods();
			$ms[] = "oh";
			foreach($ms as $m) {
				echo '<h4><a href="?page=functions.'.$m.'">'.$m.'(...)</a></h4>';
			}
		} else if ( oh("page.is.functions.*") ) {
			$f = oh("page.token.1");
			oh(page)->content_title("Function: <strong>".$f."()</strong>");
		}

		/*
		} else if (isset($_GET['y'])) {
			oh(page)->content_title("Method: <strong>".$_GET['y']."()</strong> of <strong>".$_GET['m']."</strong>");

		} else if (isset($_GET['f'])) {
		
		
		} else if (isset($_GET['m'])) {
			
		

		} else if ( oh("page")->on("functions") ) {
		*/
	}	
	
	/*
	oh("pagemanage")
		->add_node("pippo","anchestor");
	oh("pagemanage")->del_node("puppo","");
	oh("pagemanage")->get_path();
	*/
?>
